package com.suntront.module_metertask.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.suntront.lib_db.table.UserT;
import com.suntront.module_metertask.R;

import java.util.List;

/**
 * @author mtj
 * @Package com.suntront.module_metertask.adapter
 * @date 2020-05-27 16:24:47
 */

public class UserTSortAdapter extends BaseQuickAdapter<UserT, BaseViewHolder> {

    private Context context;

    public UserTSortAdapter(Context context, List<UserT> list) {
        super(R.layout.item_user_sort, list);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder holder, UserT model) {
        int position = holder.getLayoutPosition();
        holder.setText(R.id.tv_user_code, model.getUserInfoCode());
        holder.setText(R.id.tv_user_name, model.getUserName());
        holder.setText(R.id.tv_well_code, model.getMeterCode());
    }
}